package thread;

public class ThreadDemo18 {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            Object locker = new Object();
            synchronized (locker){
                synchronized (locker){
                    System.out.println("hello thread");
                }
            }
        });

        t.start();
    }
}
